<%@ include file = "/common/ini.jsp"%> 
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%> 
<%@ include file = "/common/_currUser_Infor.jsp"%> 
<%@ include file = "/common/_vr.jsp"%> 
<%@ include file = "/js/_js_for_select.jsp"%> 
<%@ include file = "/js/_js_for_checkbox.jsp"%>
<%
    // 定义名称
    String title = "修改教学资源";
    TeachResourceManager teachResourceManager = (TeachResourceManager)applicationContext.getBean("teachResourceManager");
    TeachResource tr = (TeachResource)teachResourceManager.get(request.getParameter("id"));
    String trId = tr.getId();
    String trTitle = tr.getTitle();
    String standard = tr.getStandard();
    String elecText = tr.getElecText();
    String classicQuest = tr.getClassicQuest();
    String teachDesign = tr.getTeachDesign();
    String courseWare = tr.getCourseWare();
    String video = tr.getVideo();
    String backGround = tr.getBackGround();
    String others = tr.getOthers();
    String authorName = tr.getAuthorName();
    TypeManager typeManager = (TypeManager)applicationContext.getBean("typeManager");	
%>
<script>
    var domainId = "<%= tr.getDomain().getId()%>";
    var subjectId = "<%= tr.getSubject().getId()%>";
    var courseId = "<%= tr.getCourse().getId()%>";
    var unitId = "<%= tr.getUnit().getId()%>";
    var sectionId = "<%= tr.getSection().getId()%>";
    var knowledgePointId = "<%= tr.getKnowledgePoint().getId()%>";    

    function submitData()
    {
        detailForm.serviceURL.value = "teach.teachresource.UpdateTeachResourceService";
        detailForm.submit();
    }
</script>
<%@ include file = "/common/detail/_OnForm.jsp"%> 
<%@ include file = "_detail.jsp"%> 
<%@ include file = "/common/detail/_UnderFom_OnButton.jsp"%>
          <input id="submitButton"  type="button" value="提交" afterFocused="" of="true" onclick="submitData()" disabled>
          &nbsp;&nbsp;<input  type="button" onclick="window.location.reload()" value="重置">
          &nbsp;&nbsp;<input  type="button" onclick="goback()" value="返回">
<%@ include file = "/common/detail/_UnderFom_underButton.jsp"%>
